package com.xbk.seckill.user.infrastructure.repository;

import com.xbk.seckill.user.domain.model.entity.SeckillUser;
import com.xbk.seckill.user.domain.reposity.SeckillUserRepository;
import com.xbk.seckill.user.infrastructure.mapper.SeckillUserMapper;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

/**
 * 用户
 *
 * @author xiexu
 * @date 2025/1/11 07:42
 */
@Repository
public class SeckillUserRepositoryImpl implements SeckillUserRepository {

    @Resource
    private SeckillUserMapper seckillUserMapper;

    @Override
    public SeckillUser getSeckillUserByUserName(String userName) {
        return seckillUserMapper.getSeckillUserByUserName(userName);
    }
}
